//
//  ProDetailCell.m
//  penzer
//
//  Created by caiyc on 2018/10/3.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "ProDetailCell.h"

@implementation ProDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.content_View.layer.cornerRadius = 5;
    self.content_View.layer.masksToBounds = 1;
    
    self.check_Btn.layer.cornerRadius = 15;
    self.check_Btn.layer.masksToBounds = 1;
    // Initialization code
}
-(void)bindData:(NSDictionary *)dic{
    self.sale_Money.text = dic[@"price"];
    self.sale_type.text = dic[@"live_type_cn"];
    NSInteger time_Long = [dic[@"end_time"] integerValue]-[dic[@"start_time"]integerValue];
    NSString *total = [XTool getMMSSFromSS:time_Long];
    self.times.text = [XTool timeFrommartTotimeintral:[NSString stringWithFormat:@"%@",dic[@"addtime"]]];
    self.timeLong.text = total;
    self.peoples.text = [NSString stringWithFormat:@"%@人",dic[@"total_member"]];
    self.profile_Money.text = [NSString stringWithFormat:@"佣金：%@元",dic[@"out_price"]];
   
  //  self.sale_Nums.text = [NSString stringWithFormat:@"%@件",dic[@""]];
  //  self.times.text = [NSString stringWithFormat:@"%ld",(long)time_Long];
}
-(void)bindDatas:(NSDictionary *)dic{
    self.sale_Money.text = [NSString stringWithFormat:@"%@元",dic[@"actmoney"]];;
    self.sale_type.text = dic[@"live_type_cn"];
    NSInteger time_Long = [dic[@"end_time"] integerValue]-[dic[@"start_time"]integerValue];
    NSString *total = [XTool getMMSSFromSS:time_Long];
    self.times.text = [XTool timeFrommartTotimeintral:[NSString stringWithFormat:@"%@",dic[@"start_time"]]];
    self.timeLong.text = total;
    self.peoples.text = [NSString stringWithFormat:@"%@人",dic[@"man"]];
    self.profile_Money.text = [NSString stringWithFormat:@"佣金：%@元",dic[@"actmoney"]];
    self.sale_Nums.text =  [NSString stringWithFormat:@"佣金：%@元",dic[@"goods_num"]];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
